.statefulComponent {
  height: calc(100vh - 48px);
  padding: 23px 82px 23px 82px;
  overflow: auto;
  .headerBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 30px;
    padding: 0 5px 0 0px;
    padding-right: 30px;
    .header-hd {
      height: 28px;
      color: #2f2f4d;
      font-weight: 600;
      font-size: 20px;
      font-family: PingFangSC-Semibold, PingFang SC;
      line-height: 28px;
    }
    .header-bd {
      color: #3e4352;
      font-weight: 500;
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      vertical-align: middle;
      .ant-select-selector {
        height: 39px;
        line-height: 39px;
        vertical-align: middle;
        .ant-select-selection-item {
          line-height: 39px;
        }
      }
      .toggleType {
        display: inline-block;
        width: 39px;
        height: 39px;
        margin-left: 30px;
        font-size: 18px;
        line-height: 39px;
        text-align: center;
        vertical-align: middle;
        background: #ffffff;
        border-radius: 100px;
        cursor: pointer;
      }
    }
  }

  .card {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    box-sizing: border-box;

    .cardItem {
      // flex: 0 0 calc(20% - 10px);
      // width: calc(100vw - 170);
      width: 240px;
      height: 137px;
      margin-bottom: 18px;
      margin-left: 18px;
      padding: 0 15px;
      background: #fff;
      border-left: 3px solid #4e79e3;
      border-radius: 4px;
      box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.06);
      cursor: pointer;
      .title {
        display: flex;
        flex-direction: row;
        // justify-content: center;
        align-items: center;
        width: 100%;
        height: 35px;
        color: rgba(62, 67, 82, 0.6);
        border-bottom: 1px solid #edf0f1;
      }

      .titleCon {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
      }
      .aiContent {
        display: -webkit-box;
        margin-top: 15px;
        overflow: hidden;
        color: #3e4352;
        font-size: 12px;
        line-height: 22px;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .f12 {
        font-size: 12px;
      }

      .f14 {
        font-size: 14px;
      }

      .textColor {
        color: #3e4352;
      }
    }

    // .cardItem:nth-child(5n + 1) {
    //   margin-left: 0;
    // }
  }

  .cardItem.cardMore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #f7f7fa;
    border: none;

    .text {
      margin-top: 10px;
      color: #9a9a9c;
      cursor: pointer;
    }
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    color: #9a9a9c;

    .more {
      display: flex;
      align-items: center;
      font-size: 12px;
      vertical-align: baseline;
    }
  }
}

.docTypeBox {
  width: 100%;
  .docHeader {
    padding: 0 5px 0 0px;
    color: #2f2f4d;
    font-size: 20px;
    font-family: PingFangSC-Semibold, PingFang SC;
  }
  .docTypeListBox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 217px;
    margin-top: 20px;
    padding: 0 5px 0 0px;
    .docTypeList {
      position: relative;
      width: 162px;
      height: 207px;
      margin-right: 22px;
      margin-bottom: 10px;
      background-color: #66adff;
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
      border-radius: 8px;
      cursor: pointer;
      .bg {
        position: absolute;
        top: 0;
        left: 0;
      }
      .docTypeInfo {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        .docTypeTitle {
          box-sizing: border-box;
          height: 24px;
          margin: 13px 14px;
          color: #ffffff;
          font-weight: 500;
          font-size: 16px;
          font-family: PingFangSC-Medium, PingFang SC;
          line-height: 24px;
        }
        .docTypeDesc {
          // width: 200px; /* 设置容器的宽度 */
          display: -webkit-box; /* 设置显示为弹性盒子 */
          width: calc(100% - 26px);
          height: 80px;
          margin: 5px 7px 5px 13px;
          overflow: hidden; /* 设置溢出隐藏 */
          color: #ffffff;
          font-weight: 400;
          font-size: 13px;
          font-family: PingFangSC-Regular, PingFang SC;
          line-height: 20px;
          text-overflow: ellipsis; /* 设置显示省略号 */
          -webkit-line-clamp: 4; /* 设置最多显示的行数 */
          -webkit-box-orient: vertical; /* 设置盒子内文本的方向为垂直 */
        }
        .docTypeDemo {
          margin: 15px 13px;
          .ant-btn {
            height: 20px;
            padding: 0px 12px;
            color: #66adff;
            font-weight: 500;
            font-size: 12px;
            font-size: 13px;
            font-family: PingFangSC-Medium, PingFang SC;
            line-height: 20px;
            border: none;
            border-radius: 100px;
            &.blue {
              color: #66adff;
            }
            &.orange {
              color: #ebae72;
            }
            &.cyan {
              color: #40c3c8;
            }
            &.purple {
              color: #a698f1;
            }
          }
        }
      }
    }
  }
}

.docBox {
  box-sizing: border-box;
  width: 100%;
  margin-left: 0px;
}
.noDataBox {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #fff;
  .noDataTip {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #3e4352;
    font-weight: 500;
    font-size: 16px;
    font-family: PingFangSC-Medium, PingFang SC;
    line-height: 25px;
    text-align: center;
  }
  .noDataInfo {
    width: 100%;
    color: #999999;
    font-weight: 400;
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    line-height: 24px;
    text-align: center;
  }
}
.docListBox {
  margin-left: -10px;
  .cardList {
    position: relative;
    display: flex;
    flex-direction: column;
    // overflow: hidden;
    width: 162px;
    height: 207px;
    margin: 24px 10px 10px 10px;
    padding: 14px 11px 0 11px;
    color: #3e4352;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 3px 5px 0px rgba(19, 21, 30, 0.03);
    cursor: pointer;
    .cardType {
      position: absolute;
      top: -24px;
      left: 0;
      z-index: 1;
      width: auto;
      height: 24px;
      padding: 0 11px;
      color: #ffffff;
      font-weight: 500;
      font-size: 12px;
      font-family: PingFangSC-Medium, PingFang SC;
      line-height: 26px;
      text-align: center;
      background: linear-gradient(180deg, #8abde7 0%, #8dc0e8 100%);
      border-radius: 6px 6px 0px 0px;
      .specialRdius {
        position: absolute;
        top: 24px;
        left: 0;
        display: inline-block;
        width: 8px;
        height: 8px;
        background-image: radial-gradient(20px at 8px 100%, transparent 8px, #8abde7 8px);
      }
      &.blue {
        background: linear-gradient(180deg, #8abde7 0%, #8dc0e8 100%);
        .specialRdius {
          background-image: radial-gradient(20px at 8px 100%, transparent 8px, #8abde7 8px);
        }
      }
      &.orange {
        background: linear-gradient(180deg, #c3aa75 0%, #dfcea1 100%);
        .specialRdius {
          background-image: radial-gradient(20px at 8px 100%, transparent 8px, #dfcea1 8px);
        }
      }
      &.cyan {
        background: #73cdc4;
        .specialRdius {
          background-image: radial-gradient(20px at 8px 100%, transparent 8px, #73cdc4 8px);
        }
      }
      &.purple {
        background: linear-gradient(180deg, #b2abd5 0%, #b9b2d9 100%);
        .specialRdius {
          background-image: radial-gradient(20px at 8px 100%, transparent 8px, #b9b2d9 8px);
        }
      }
    }
    .box {
      position: relative;
      width: 50px;
      height: 50px;
      background-color: #2f2f4d;
      border-radius: 8px;
    }

    .blue-area {
      position: absolute;
      top: 0;
      left: 0;
      width: 50px; /* 根据需要设置宽度 */
      height: 50px; /* 根据需要设置高度 */
      background-image: radial-gradient(200px at 50px 100%, #fff 50px, #4169e1 50px);

      // background-color: blue;
      // border-top-left-radius: 8px;
      // background-image: radial-gradient(200px at 50px 0px, #fff 50px, #4169E1 50px);
      // background-image: radial-gradient(200px at 50px 0px, #fff 50px, #4169E1 50px);
      // background: radial-gradient(circle at top left, transparent 0%, transparent 75%, blue 75%);
    }

    .cardTit {
      //超出2行显示省略号
      display: -webkit-box;
      overflow: hidden;
      font-weight: 600;
      font-size: 14px;
      // line-height: 17px;
      text-overflow: ellipsis;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .cardCon {
      display: -webkit-box;
      width: 110%;
      margin-top: 4px;
      overflow: hidden;
      font-weight: 400;
      // height: 120%;
      font-size: 12px;
      line-height: 20px;
      text-overflow: ellipsis;
      -webkit-line-clamp: 5;
      line-clamp: 5;
      -webkit-box-orient: vertical;
    }
    .cardFoot {
      position: absolute;
      bottom: 10px;
      left: 10px;
      width: 110%;
      font-weight: 400;
      opacity: 0.5;
    }
    .card-more {
      position: absolute;
      right: 10px;
      bottom: 8px;
      opacity: 0.5;
    }
  }
}
.scrollableDiv {
  height: calc(100vh - 400px);
  min-height: 250px;
  overflow: auto;
  // padding:10px 16px;
}
.demoModal {
  // width: 843px;
  // height: calc(100% - 30px);
  // width: 50vw !important;
  // min-width: 720px !important;
  // max-width: 1600px !important;
  .ant-modal-body {
    // max-height: 60vh !important;
    height: 673px;
    padding-right: 10px;
    overflow-y: auto !important;
    p {
      color: #3e4352;
      font-weight: 500;
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      line-height: 28px;
      text-align: left;
    }
  }
  .ant-modal-content {
    padding: 20px 30px;
  }
  .ant-modal-title {
    margin: 20px 20px 35px 0px;
  }
}
.docCardTableWrap {
  width: 100%;
  height: calc(100% - 355px);
  &.wrapAutoHeight {
    // height: 670px;
  }
  .docCardTableBox {
    width: 100%;
    height: calc(100% - 50px);
    overflow: auto;
    .docCard {
      display: inline-block;
      vertical-align: top;
      &:last-of-type {
        .docTableList {
          &::after {
            display: none;
          }
        }
      }
      .docCardList {
        position: relative;
        display: inline-flex;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        width: 375px;
        height: 147px;
        margin: 0 24px 24px 0;
        padding: 17px 20px;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0px 4px 12px 0px rgba(19, 21, 30, 0.03);
        cursor: pointer;
        .delIocnBox {
          position: absolute;
          right: 15px;
          bottom: 10px;
          color: #d8d8d8;
          .ant-dropdown-trigger {
            width: 30px;
            height: 30px;
            font-size: 18px;
            line-height: 40px;
          }
        }
        .cardHeadBox {
          display: flex;
          align-content: center;
          align-items: center;
          justify-content: flex-start;
          box-sizing: border-box;
          width: 100%;
          margin: 0 0 8px 0;
          .cardHead-hd {
            width: auto;
            height: 25px;
            padding: 0px 11px;
            color: #fff;
            color: #f7f7fa;
            font-weight: 500;
            font-family: PingFangSC-Medium, PingFang SC;
            line-height: 25px;
            background: #85bdfe;
            border-radius: 6px;
          }
          .cardHead-bd {
            flex: 1;
            color: #3e4352;
            font-weight: 400;
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            line-height: 20px;
            text-align: right;
            opacity: 0.5;
          }
        }
        .cardContBox {
          display: flex;
          align-content: center;
          align-items: center;
          justify-content: flex-start;
          width: 100%;
          height: 28px;
          line-height: 28px;
          .cardCont-hd {
            width: auto;
            color: #3e4352;
            font-weight: 500;
            font-size: 14px;
            font-family: PingFangSC-Medium, PingFang SC;
          }
          .cardCont-bd {
            flex: 1;
            margin-right: 20px;
            margin-left: 10px;
            overflow: hidden;
            color: #3e4352;
            font-weight: 400;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .cardCont-theme {
            overflow: hidden;
            color: #3e4352;
            font-weight: 400;
            font-size: 14px;
            text-overflow: ellipsis;
          }
        }
      }
      .docTableList {
        position: relative;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        width: 100%;
        height: 62px;
        padding: 0 20px;
        line-height: 62px;
        background: #ffffff;
        cursor: pointer;
        &::after {
          position: absolute;
          right: 20px;
          bottom: 0;
          left: 20px;
          display: block;
          height: 1px;
          background-color: rgba(216, 216, 216, 0.5);
          content: '';
        }
        .docTable-hd {
          width: auto;
          height: 25px;
          padding: 0px 11px;
          color: #fff;
          color: #f7f7fa;
          font-weight: 500;
          font-family: PingFangSC-Medium, PingFang SC;
          line-height: 25px;
          background: #85bdfe;
          border-radius: 6px;
        }
        .docTable-bd {
          flex: 1;
          margin: 0 25px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .docTable-ft {
          width: auto;
          height: 20px;
          margin-right: 20px;
          color: #3e4352;
          font-weight: 500;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          line-height: 20px;
          opacity: 0.5;
        }
        .docTable-del {
          margin-right: 20px;
          color: #d8d8d8;
          .ant-dropdown-trigger {
            height: 20px;
            font-size: 18px;
            line-height: 20px;
          }
        }
      }
    }
    &.tableModal {
      overflow: auto;
      // box-shadow: 0px 4px 12px 0px rgba(19,21,30,0.03);
      border-radius: 10px;
      .docCard {
        width: 100%;
      }
      .docCardList {
        display: none;
      }
      .docTableList {
      }
    }
    &.cardModal {
      background: none;
      .docTableList {
        display: none;
      }
    }
  }
}
.docCardTablePagination {
  height: 50px;
  line-height: 50px;
  vertical-align: middle;
  .ant-pagination {
    padding-top: 18px;
  }
}
@media screen and (max-width: 3840px) {
  .docCardListBox {
    .docCardList {
      width: 375px;
    }
  }
}

@media screen and (max-width: 2560px) {
  .docCardListBox {
    .docCardList {
      width: 18%;
    }
  }
}
@media screen and (max-width: 1920px) {
  .docCardListBox {
    .docCardList {
      width: 22%;
    }
  }
}
@media screen and (max-width: 1540px) {
  .docCardListBox {
    .docCardList {
      width: 30%;
    }
  }
}
@media screen and (max-width: 1080px) {
  .docCardListBox {
    .docCardList {
      width: 46%;
    }
  }
}

/* 对于宽度小于等于980px的情况，使用百分比自适应 */
@media screen and (max-width: 800px) {
  .docCardListBox {
    .docCardList {
      width: 100%;
    }
  }
}

.floatDialogWrap {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1000;

  .floatDialogAvatar {
    position: relative;
    position: relative;
    z-index: 100;
    width: 60px;
    height: 60px;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 100px;
    cursor: pointer;
    .scan-line {
      position: absolute;
      width: 100%;
      height: 120px; /* 扫描线的高度 */
      background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.85),
        transparent
      ); /* 使用线性渐变创建扫描线效果，从上到下 */
      animation: scan 6s linear infinite; /* 扫描线动画，2秒完成一次扫描，线性运动，无限循环 */
    }

    @keyframes scan {
      0%,
      100% {
        transform: translateY(-100%); /* 扫描线的起始和结束位置在上方 */
      }
      50% {
        transform: translateY(100%); /* 扫描线的中间位置在下方 */
      }
    }
  }

  .floatDialogBox {
    position: absolute;
    top: 30px;
    right: 30px;
    box-sizing: border-box;
    width: 478px;
    height: 294px;
    padding: 30px 22px 25px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border: 1px solid #fff;
    border: 1px solid #fff;
    border-bottom: none;
    border-radius: 6px;
    box-shadow: 0px 10px 9px 0px rgba(45, 48, 59, 0.15);
    &.dialogOn {
      overflow: hidden;
      background-image: none;
      box-shadow: none;
      animation: AiFloatMove 0.2s forwards ease-in-out;
      .brainSpaceInfoBox {
        display: none;
      }
      .goBrainSpaceInfo {
        display: none;
      }
    }
    &.dialogOFF {
      overflow: hidden;
      animation: AiFloatMove2 0.2s forwards ease-in-out;
    }
    .AIutterance {
      box-sizing: border-box;
      width: 100%;
      height: 48px;
      padding: 0 24px;
      color: #3e4352;
      font-weight: 500;
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      line-height: 48px;
      background: #fff;
      border-radius: 0px 10px 10px 10px;
      box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
    }
    .brainSpaceInfoBox {
      display: flex;
      flex-wrap: wrap;
      align-content: center;
      align-items: center;
      justify-content: space-evenly;
      width: 100%;
      padding: 10px 0px 10px;

      .brainSpaceInfo {
        display: inline-block;
        width: 45%;
        height: 26px;
        margin: 10px 0px;
        line-height: 26px;
        //偶数的brainSpaceInfo宽度为42%
        &:nth-child(2n) {
          width: 42%;
          margin-left: 3%;
        }
        .brainSpaceInfo-hd {
          display: inline-block;
          width: 110px;
          margin-right: 10px;
          color: #3e4352;
          font-weight: 400;
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
        }
        .brainSpaceInfo-bd {
          width: auto;
          color: #3e4352;
          font-weight: normal;
          font-size: 16px;
          font-family: Alibaba-PuHuiTi-B, Alibaba-PuHuiTi;
        }
      }
    }
    .goBrainSpaceInfo {
      width: 100%;
      text-align: center;
      .ant-btn {
        padding: 0 25px;
      }
    }
  }
}
@keyframes AiFloatMove {
  0% {
    top: 30px;
    right: 30px;
    width: 478px;
    height: 294px;
  }
  100% {
    top: 8px;
    right: 30px;
    width: 478px;
    height: 70px;
    padding: 0px 40px 0 0;
    background-image: none;
    border-radius: 10px 0 0 10px;
  }
  // 100% {
  //   top: 2px;
  //   right: 0px;
  //   display: none;
  //   width: 30px;
  //   height: 30px;
  //   border-radius: 100px;
  // }
}

@keyframes AiFloatMove2 {
  // 0% {
  //   top: 8px;
  //   right: 15px;
  //   width: 58px;
  //   height: 58px;
  //   border-radius: 10px 0 0 10px;
  // }
  0% {
    top: 8px;
    right: 30px;
    width: 478px;
    height: 70px;
    padding: 5px 22px;
    border-radius: 10px 0 0 10px;
  }
  100% {
    top: 30px;
    right: 30px;
    width: 478px;
    height: 294px;
  }
}
.avatarButtonWrap {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1000;
  background: #397bff;
  border-radius: 100px;
  box-shadow: 0px 2px 11px 0px rgba(0, 0, 0, 0.08);
  .avatarButtonAvatar {
    position: relative;
    position: relative;
    z-index: 100;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 100px;
    cursor: pointer;
    .problem-avatar {
      width: 36px;
      height: 36px;
      margin: 5px 5px;
    }
    .avatarButtonInfo {
      width: auto;
      height: 46px;
      margin-right: 19px;
      color: #fff;
      background: #397bff;
      border-radius: 100px;
      box-shadow: 0px 2px 11px 0px rgba(0, 0, 0, 0.08);
    }
  }
}
